import React from 'react'
import {createUseStyles} from 'react-jss'
/**
 * css in js
 * react-jss属于css in js这种方案的一个库
 */
const useStyle=createUseStyles({
  container:{
    width:'100vw',
    height:'20px',
    backgroundColor:'springgreen',
    border:'1px dashed #ccc'

  }
})

export default function One() {
  const {container}=useStyle()
  return (
    <div className={container}>Two</div>
  )
}
